#ifndef HEADERPARSER
#define HEADERPARSER
#include <vector>
#include "DataTypes.h"

class HeaderParser
{
public:
    unsigned int getMsgDataStart(const Data& p_msg);
    AddressType getAddressType(const Data& msg);
    unsigned int getMessageLength(const Data& msg);
    unsigned int getHeaderLength(const Data& msg);
    PartiesAddresses getMsgAddresses(const Data& p_msg);

private:
    void getMessageLength(MessageFormat& retval, const Data& msg);
    MessageFormat formatByteParse(const Data& msg);
    PartiesAddresses getMsgAddresses(const Data& p_msg, const MessageFormat& format);


};






#endif
